<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript">
	var xifeng = jQuery.noConflict(true);
	(window.jQuery && jQuery().jquery > '1.7.0') || (window.jQuery = xifeng);
</script>
<script type="text/javascript" src="//cdn.bootcss.com/layer/2.4/layer.min.js"></script>
<style>
.container .floattop{padding-bottom: 0;}
	.cpform thead, .cpform .header { background: #eee;}
	.cpform th { text-align: center; border-right: 1px solid #ddd;}
	.cpform td { border-right: 1px solid #ddd; }
	.none { display: none;}
	.cpform .txt { width: 60px; }
	.cpform textarea { resize: both;width: 90%;height: 50px; margin:5px auto; }
	.cpform .title { width: 150px; }
	.text-center{text-align: center;margin:8px auto;}
	.showdibu p {font-size: 1.2em;line-height: 1.5;margin:10px 15px;text-align: left;}
	.cpform .dibunavinput{width: 99%;}
	.cpform .input-90{width: 90%;}
	.neibianju{padding: 15px;text-align: left;}
	.shoujisetting td{vertical-align: top;}
</style>
<form action="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mtopic&act=mbadvpost"  autocomplete="off" method="post" class="cpform" name="cpform">
<table class="tb tb2 shoujisetting">
	<tr>
		<td>
			<div class="mbm"><strong>{lang jameson_read:yinchangtoububiaotilan}</strong></div>
			<label>{lang jameson_read:shi}
				<input type="radio" name="noheaderbar" {if $noheaderbar==1} checked {/if} value="1" id="">
			</label>
			<span class="marginleft"></span>
			<label>{lang jameson_read:fou}
				<input type="radio" name="noheaderbar" {if $noheaderbar==0} checked {/if} value="0" id="">
			</label>
		</td>
		<td>
			<div class="mbm"><strong>{lang jameson_read:shoujianniu}{$_G['jameson_read']['shoujiurl']}plugin.php?id=jameson_read&contrl=touch</strong></div>
			<textarea name="shoujianniu">
				{$shoujianniu}
			</textarea>
		</td>
	</tr>
</table>
<table class="tb tb2">
	<tr class="header ">
		<th class="title">{lang jameson_read:shoujihuandeng}</th>
		<th>{lang jameson_read:tupianwanzhengdizhi}</th>
		<th>{lang jameson_read:wanzhengdelianjie}/{lang jameson_read:huandengbiaoti}</th>
	</tr>
<!-- 幻灯 -->
{loop $shoujiadv $key $adv}
	<tr class="hover threadopt">
		<td>{$adv['name']}</td>
		<td title="{lang jameson_read:buxianshiguanggao}">
			<input class="input-90" type="text" value="{$adv['image']}" name="hdimage[{$adv['topic_id']}]" />
		</td>
		<td>
			<input placeholder="{lang jameson_read:wanzhengdelianjie}" type="text" value="{$adv['url']}" name="hdurl[{$adv['topic_id']}]" /> &nbsp;&nbsp;
			<input type="text" name="hdtitle[{$adv['topic_id']}]" value="{$adv['adv']}" placeholder="{lang jameson_read:huandengbiaoti}">
		</td>
	</tr>
{/loop}
</table>

<table class="tb tb2">
<tr class="header">
	<td class="title">{lang jameson_read:dibutanchu}</td>
	<td class="title">{lang jameson_read:daohangwenzi}:{lang jameson_read:daohangtishi}</td>
	<td>{lang jameson_read:wanzhengdelianjie}</td>
</tr>
{loop $shoujicelannav $key $nav}
<tr class="hover threadopt">
	<td>{lang jameson_read:dibutanchu}{$key}</td>
	<td><input name="celanimage[{$nav['topic_id']}]" value="{$nav['image']}" /></td>
	<td><input class="input-90" name="celanurl[{$nav['topic_id']}]" value="{$nav['url']}" /></td>
</tr>
{/loop}
</table>

<table class="tb tb2">
<tr class="header">
	<td colspan="2">{lang jameson_read:shoujidibudaohang}/<a href="javascript:;" onclick="showdibu();">{lang jameson_read:tianxieshuomingheshili}</a></td>
	<td>{lang jameson_read:xianshimingcheng}</td>
	<td>{lang jameson_read:zhuanxiangdewangzhi}</td>
</tr>
{loop $dibunav $nav}
<tr class="hover threadopt">
	<td colspan="2">
		<input placeholder="{lang jameson_read:tianxiewanzhengtubiao}" name="dibunavimage[{$nav['topic_id']}]" class="dibunavinput" value="{$nav['image']}" />
	</td>
	<td>
		<input placeholder="{lang jameson_read:xianshimingcheng}" type="text" name="dibunavadv[{$nav['topic_id']}]" value="{$nav['adv']}">
	</td>
	<td><input placeholder="{lang jameson_read:zhuanxiangdewangzhi}" name="dibunavurl[{$nav['topic_id']}]" value="{$nav['url']}" /></td>
</tr>
{/loop}
</table>
<table class="tb tb2">
<tr class="header">
	<td>{lang jameson_read:shoujihaoshutuijian}/{lang jameson_read:appmorenshujia}</td>
	<td>{lang jameson_read:shoujihaoshutuijiantishi}</td>
</tr>

{loop $haoshutuijian $adv}
<tr class="hover threadopt">
	<td>{lang jameson_read:shoujihaoshutuijiantishi}</td>
	<td>
		<textarea placeholder="{lang jameson_read:shoujiguanggaotishi}" name="hstjadv[{$adv['topic_id']}]">
			{eval echo  (stripcslashes($adv['adv']));}
		</textarea>
	</td>
</tr>
{/loop}
</table>
<table class="tb tb2">
	<tr class="header ">
		<th class="title">{lang jameson_read:guanggao}{lang jameson_read:weizhi}</th>
		<th>{lang jameson_read:guanggaodaima}<a href="javascript:;" onclick="guanggaoshili();">{lang jameson_read:tianxieshuomingheshili}</a></th>
	</tr>
<!-- 阅读页面广告8 -->
{loop $shoujiyueduadv $key $adv}
	<tr class="hover threadopt">
		<td>{$adv['name']}</td>
		<td colspan="">
			{lang jameson_read:guanggaodaimajinggao}
			<br>
			<textarea placeholder="{lang jameson_read:shoujiguanggaotishi}" name="adv[{$adv['topic_id']}]">
			{eval echo  (stripcslashes($adv['adv']));}
		</textarea></td>
	</tr>
{/loop}
<!-- 发现页面广告 11-->
{loop $faxianadv $key $adv}
	<tr class="hover threadopt">
		<td>{$adv['name']}</td>
		<td>
			{lang jameson_read:guanggaodaimajinggao}
			<br>
			<textarea placeholder="{lang jameson_read:shoujiguanggaotishi}" name="adv[{$adv['topic_id']}]">
			{eval echo  (stripcslashes($adv['adv']));}
			</textarea>
		</td>
	</tr>
{/loop}
<!-- 书城页面广告12 -->
{loop $shuchengadv $key $adv}
	<tr class="hover threadopt">
		<td>{$adv['name']}</td>
		<td>
			{lang jameson_read:guanggaodaimajinggao}
			<br>
			<textarea placeholder="{lang jameson_read:shoujiguanggaotishi}" name="adv[{$adv['topic_id']}]">
			{eval echo  (stripcslashes($adv['adv']));}
			</textarea>
		</td>
	</tr>
{/loop}
</table>

<table class="tb tb2">
<!-- app -->
{if file_exists("./xifeng/api.php")}
<tr class="header">
	<td colspan="4">APP{lang jameson_read:huandeng}</td>
</tr>
<tr class="threadopt">
	<td>{lang jameson_read:tupianwanzhengdizhi}</td>
	<td>{lang jameson_read:xianshidebiaoti}</td>
	<td colspan="2">{lang jameson_read:zhuanxiangdewangzhi}</td>
</tr>
{loop $apphuandeng $key $adv}
	<tr class="hover threadopt">
		<td width="20%">
			<input type="text" value="{$adv['image']}" name="apphuandengimage[{$adv['topic_id']}]" placeholder="{lang jameson_read:tupianwanzhengdizhi}" />
		</td>
		<td width="20%">
			<input type="text" value="{$adv['adv']}" name="apphuandengbiaoti[{$adv['topic_id']}]" placeholder="{lang jameson_read:xianshidebiaoti}" />
		</td>
		<td colspan="2">
			<input type="text" value="{$adv['url']}" class="input-90" name="apphuandengurl[{$adv['topic_id']}]" placeholder="{lang jameson_read:zhuanxiangdewangzhi}" />
		</td>
	</tr>
{/loop}
<tr class="header">
	<td colspan="4">APP{lang jameson_read:gonggao}</td>
</tr>
<tr class="threadopt">
	<td colspan="2">{lang jameson_read:tianxiegonggaobiaoti}</td>
	<td colspan="2">{lang jameson_read:tianxiegonggaodizhi}</td>
</tr>
{loop $appgonggao $key $adv}
	<tr class="hover threadopt">
		<td colspan="2">
			<input type="text" value="{$adv['image']}" name="gonggaotitle[{$adv['topic_id']}]" placeholder="{lang jameson_read:tianxiegonggaobiaoti}" /></td>
		<td colspan="2">
			<input type="text" class="input-90" value="{$adv['url']}" name="gonggaourl[{$adv['topic_id']}]" placeholder="{lang jameson_read:tianxiegonggaodizhi}" />
		</td>
	</tr>
{/loop}

<tr class="header">
	<td>{lang jameson_read:appurl}</td>
	<td colspan="3">
		<input type="text" class="input-90" name="appdownloadurl" value="{$appurl}" />
	</td>
</tr>
<tr class="header">
	<td colspan="4">APP{lang jameson_read:guanyuwomen}</td>
</tr>
{loop $appabout $key $adv}
	<tr class="hover threadopt">
		<td colspan="4">
			<textarea placeholder="{lang jameson_read:guanyuwomen}" name="appaboutcontent[{$adv['topic_id']}]" style="height:240px;">
			{eval echo stripcslashes($adv['adv']);}
		</textarea>
		</td>
	</tr>
{/loop}
{/if}
	<tr>
		<td colspan="4">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input id="submit_editsubmit" class="btn" type="submit" value="{lang jameson_read:tijiao}" name="editsubmit">
		</td>
	</tr>
</table>
</form>
<script type="text/javascript">
	function showdibu(){
		layer.open({
		  type: 1,
		  shadeClose : true,
		  title:'<h2 style="text-align:left">{lang jameson_read:querendibunav}</h2>',
		  skin: false, //加上边框
		  area: ['900px', '450px'], //宽高
		  content: '<div class="text-center"><img src="./source/plugin/jameson_read/images/dibunav.png"></div><div class="showdibu">{lang jameson_read:dibunavshuoming}</div>'
		});
	}
	function guanggaoshili(){
		layer.open({
		  type: 1,
		  shadeClose : true,
		  title:'<h2 style="text-align:left">{lang jameson_read:tianxieshuomingheshili}</h2>',
		  skin: false, //加上边框
		  area: ['600px', '350px'], //宽高
		  content: '<div class="neibianju">&lt;a href="http://www.discuz.net"&gt;&lt;img src="//qidian.qpic.cn/qidian_common/349573/0900e7eb2de553ee1709491d2e784358/0" &gt;&lt/a&gt;</div>'
		});
	}
</script>
<script type="text/javascript" src="./source/plugin/jameson_read/template/adm.js"></script>